package com.saturn.titan.core.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.saturn.titan.core.bean.RechargeRecord;
import com.saturn.titan.core.repository.mybatis.RechargeRecordDao;

@Component
@Transactional(readOnly = true)
public class ReportService {

	//private static Logger logger = LoggerFactory.getLogger(ReportService.class);
	
	@Autowired
	private RechargeRecordDao rechargeRecordDao;

	public List<RechargeRecord> findRechargeRecord(RechargeRecord condition){
		
		return rechargeRecordDao.select(condition);
	}
	
	public Long findRechargeRecordCount(RechargeRecord condition){
		return rechargeRecordDao.selectCount(condition);
	}

	public List<String> getAllShopName() {
		return rechargeRecordDao.getAllShopName();
	}
	
}
